<!DOCTYPE html>
<html lang="en">
  <head>
    <title>State Enumeration Reference</title>
    <link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../../js/jquery.min.js" defer></script>
    <script src="../../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Enum/State" class="dashAnchor"></a>
    <a title="State Enumeration Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../../index.html">ZcashLightClientKit Docs</a> (71% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../../index.html">ZcashLightClientKit Reference</a>
        <img id="carat" src="../../img/carat.png" />
        State Enumeration Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Classes/CompactBlockProcessor.html">CompactBlockProcessor</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/CompactBlockProcessor/Configuration.html">– Configuration</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/CompactBlockProcessor/State.html">– State</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/Initializer.html">Initializer</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/LightWalletGRPCService.html">LightWalletGRPCService</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SDKSynchronizer.html">SDKSynchronizer</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SDKSynchronizer/NotificationKeys.html">– NotificationKeys</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/ZcashSDK.html">ZcashSDK</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Enums/CompactBlockProcessorError.html">CompactBlockProcessorError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/InitializerError.html">InitializerError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/LightWalletServiceError.html">LightWalletServiceError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/ResourceProviderError.html">ResourceProviderError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/RustWeldingError.html">RustWeldingError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/Status.html">Status</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/SynchronizerError.html">SynchronizerError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/TransactionEncoderError.html">TransactionEncoderError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Enums/TransactionKind.html">TransactionKind</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Extensions/Array.html">Array</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/BlockHeight.html">BlockHeight</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Collection.html">Collection</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/CompactBlockRange.html">CompactBlockRange</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Data.html">Data</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Data/HexEncodingOptions.html">– HexEncodingOptions</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Notification.html">Notification</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/Notification/Name.html">– Name</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/String.html">String</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Protocols/AbstractTransaction.html">AbstractTransaction</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/CompactBlockDownloading.html">CompactBlockDownloading</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/ConfirmedTransactionEntity.html">ConfirmedTransactionEntity</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/LightWalletService.html">LightWalletService</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/LightWalletServiceResponse.html">LightWalletServiceResponse</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/Logger.html">Logger</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/MinedTransactionEntity.html">MinedTransactionEntity</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/PaginatedTransactionRepository.html">PaginatedTransactionRepository</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/PendingTransactionEntity.html">PendingTransactionEntity</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/RawIdentifiable.html">RawIdentifiable</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/ResourceProvider.html">ResourceProvider</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/SeedProvider.html">SeedProvider</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/SignedTransactionEntity.html">SignedTransactionEntity</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/Synchronizer.html">Synchronizer</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/TransactionEntity.html">TransactionEntity</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/ZcashRustBackendWelding.html">ZcashRustBackendWelding</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Structs/CompactBlockProcessorNotificationKey.html">CompactBlockProcessorNotificationKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/DefaultResourceProvider.html">DefaultResourceProvider</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/LightWalletEndpoint.html">LightWalletEndpoint</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/WalletBirthday.html">WalletBirthday</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/ZcashCompactBlock.html">ZcashCompactBlock</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs.html#/s:19ZcashLightClientKit0A27RustBackendWeldingConstantsV">ZcashRustBackendWeldingConstants</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:19ZcashLightClientKit11BlockHeighta">BlockHeight</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:19ZcashLightClientKit17CompactBlockRangea">CompactBlockRange</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>State</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">State</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt"><a href="../../Classes/CompactBlockProcessor.html">CompactBlockProcessor</a></span><span class="o">.</span><span class="kt">State</span><span class="p">:</span> <span class="kt">Equatable</span></code></pre>

                </div>
              </div>
            <p>Represents the possible states of a CompactBlockProcessor</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO11downloadingyA2EmF"></a>
                    <a name="//apple_ref/swift/Element/downloading" class="dashAnchor"></a>
                    <a class="token" href="#/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO11downloadingyA2EmF">downloading</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>connected and downloading blocks</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">downloading</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO7stoppedyA2EmF"></a>
                    <a name="//apple_ref/swift/Element/stopped" class="dashAnchor"></a>
                    <a class="token" href="#/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO7stoppedyA2EmF">stopped</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>was doing something but was paused</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">stopped</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO10validatingyA2EmF"></a>
                    <a name="//apple_ref/swift/Element/validating" class="dashAnchor"></a>
                    <a class="token" href="#/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO10validatingyA2EmF">validating</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>processor is validating</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">validating</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO8scanningyA2EmF"></a>
                    <a name="//apple_ref/swift/Element/scanning" class="dashAnchor"></a>
                    <a class="token" href="#/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO8scanningyA2EmF">scanning</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>processor is scanning</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">scanning</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO5erroryAEs5Error_pcAEmF"></a>
                    <a name="//apple_ref/swift/Element/error(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO5erroryAEs5Error_pcAEmF">error(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>was processing but erred</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="nf">error</span><span class="p">(</span><span class="nv">_</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO6syncedyA2EmF"></a>
                    <a name="//apple_ref/swift/Element/synced" class="dashAnchor"></a>
                    <a class="token" href="#/s:19ZcashLightClientKit21CompactBlockProcessorC5StateO6syncedyA2EmF">synced</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Processor is up to date with the blockchain and you can now make transactions.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">case</span> <span class="n">synced</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:SQ2eeoiySbx_xtFZ"></a>
                    <a name="//apple_ref/swift/Method/==(_:_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:SQ2eeoiySbx_xtFZ">==(_:_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">==</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt"><a href="../../Classes/CompactBlockProcessor.html">CompactBlockProcessor</a></span><span class="o">.</span><span class="kt">State</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt"><a href="../../Classes/CompactBlockProcessor.html">CompactBlockProcessor</a></span><span class="o">.</span><span class="kt">State</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/zcash/ZcashLightClientKit" target="_blank" rel="external">Francisco Gindre and Jack Grigg</a>. All rights reserved. (Last updated: 2020-04-06)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
